/*
 * Copyright 2011-2025 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0.
 * See `LICENSE` in the project root for license information.
 */

package me.ijleex.platform.framework.redis;

import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.data.redis.autoconfigure.DataRedisAutoConfiguration;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.StringRedisTemplate;

import me.ijleex.platform.framework.redis.util.RedisUtils;

/**
 * Redis工具类配置.
 *
 * @author liym
 * @see RedisUtils
 * @since 2023-08-11 22:31 新建
 */
@AutoConfigureAfter(DataRedisAutoConfiguration.class)
@Configuration
public class RedisConfiguration {

    public RedisConfiguration(StringRedisTemplate redisTemplate) {
        RedisUtils.setRedisTemplate(redisTemplate);
    }

}
